package pers.cl.dubbo.mvc;

import pers.cl.dubbo.mvc.annotation.RequestMapping;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;

/**
 * @author chenlei
 * @date 2020/1/14
 * @description
 **/
public class HandlerMapping {

    private Object bean;

    private Class<?> beanType;

    private Method method;

    private Parameter [] parameter;

    private RequestMapping requestMapping;

    private RequestMapping methodMapping;

    public RequestMapping getMethodMapping() {
        return methodMapping;
    }

    public void setMethodMapping(RequestMapping methodMapping) {
        this.methodMapping = methodMapping;
    }

    public RequestMapping getRequestMapping() {
        return requestMapping;
    }

    public void setRequestMapping(RequestMapping requestMapping) {
        this.requestMapping = requestMapping;
    }

    public Object getBean() {
        return bean;
    }

    public void setBean(Object bean) {
        this.bean = bean;
    }

    public Class<?> getBeanType() {
        return beanType;
    }

    public void setBeanType(Class<?> beanType) {
        this.beanType = beanType;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Parameter[] getParameter() {
        return parameter;
    }

    public void setParameter(Parameter[] parameter) {
        this.parameter = parameter;
    }
}
